package com.jintian.hnsj_metting.util

import android.os.Environment
import java.io.File

class FileUtil {
    companion object {
        fun ensureFolder() {
            val folder = Environment.getExternalStorageDirectory().path + "/faceCap2/"
            val dir = File(folder)
            if (!dir.exists() || !dir.isDirectory) {
                dir.mkdirs()
            }
        }

        fun getFolder(): String {
            return Environment.getExternalStorageDirectory().path + "/faceCap2/"
        }

        fun getTempFolder(): String {
            return Environment.getExternalStorageDirectory().path + "/faceCapTemp" + System.currentTimeMillis() + "/"
        }
    }
}